<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>UMD Room Finder</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
   
    </head>
    <body>
        
  <style type="text/css">
      body
      {
      background-color:#e5f5ff;
      background-image:url(http://img.photobucket.com/albums/v627/lovkurama/Screenshot2011-10-03at53227PM.png);
      background-repeat:repeat-x;
      font-size: 1em;
      }
      div.banner
      {
      text-align:center;
      }
      
      #inhalt{
	text-align: center;
	vertical-align: middle;
	margin: 0px auto;
	padding: 0px;
	width: 60%;
	background-color: #e5f5ff;
	
	}
   </style>
        
        
        <div class="banner">
        
        <img src="http://img.photobucket.com/albums/v627/lovkurama/Screenshot2011-10-11at103904AM.png" height=30>
			</div>
			<div id="inhalt">
        
        <?php
                //connect to database
                $link = mysql_connect('localhost', 'pott0180', 'ckersixt');
                if(!$link) {
                        die('Could not connect: ' . mysql_error());
                }

                //select database
                $db_selected = mysql_select_db('soloono_roomFinder', $link);
                if (!$db_selected) {
                        die('Cant use db soloono_roomFinder: ' . mysql_error());
                }

		  if (isset($_POST['Floorplan'])) {
       	 $Floorplan = $_POST['Floorplan'];
       	 }

        echo '<h1>Room Finder</h1>';
        echo '<h3>Your Map</h3>';

        //Image urls stored in the database.
        //Respective images displayed
        echo '<div id="picDiv">';

        echo '<img id="roomPicture" src="'.$Floorplan.'" alt="room map" />';
        
        echo '</div>';
        
        echo '<br>Location > Destination > Building Map > <b>Floor Map</b><br> <br>';
        echo '<a href="index.php"><img SRC="http://i1120.photobucket.com/albums/l499/mill4655/roomFinder/StartOver.jpg" width=90 height=28  ALT="Start Over"></a><br>';
        
        
        echo "<br />For a full campus map, click <a href='http://www.d.umn.edu/maps/big_UMD_map.gif'>here</a><br />";
		  echo "For help, credits, more info, click <a href='about.html'>here</a><br>";
        
        ?>
</div>
    </body>
</html>
